<?php $this->headMeta()->appendHttpEquiv('Content-Type',
'text/html;charset=utf-8'); $this->headTitle()->setSeparator(' - ');
$this->headTitle('Dydaktyka praca mgr'); echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<!-- Path to jQuery library -->
<!-- Path to jQuery-PHP library -->
<?php echo $this->headScript()->prependFile($this->baseUrl().'/js/jquery/jquery-1.6.2.min.js'); ?>

<?php echo $this->headScript()->prependFile($this->baseUrl().'/js/functions.js'); ?>
<?php echo $this->headScript()->prependFile($this->baseUrl().'/js/forms.js'); ?>
<?php echo $this->headScript()->prependFile($this->baseUrl().'/js/calendar.js'); ?>

<?php echo $this->headScript()->prependFile($this->baseUrl().'/js/jquery/jquery_apprise/apprise-1.5.min.js'); ?>
<?php echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery/full_calendar/fullcalendar.min.js'); ?>
<?php echo $this->headScript()->appendFile('http://code.jquery.com/ui/1.8.16/jquery-ui.min.js'); ?>

        

<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/style.css'); ?>
<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/jquery/css_apprise/apprise.min.css'); ?>
<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/jquery/css_fullcalendar/fullcalendar.css'); ?>
<?php echo $this->headLink()->prependStylesheet('http://code.jquery.com/ui/1.8.16/themes/smoothness/jquery-ui.css'); ?>


<script type="text/javascript">
	$(document).ready(function() {
		$('#nav ul.sub-nav ').hide();
		navShowHide();
	});
	</script>

</head>
<body>

	<div id="wrapper">
		<div id="header">

			<span id="header-nav">
			
			<?php if( Zend_Auth::getInstance()->getIdentity() ) {
			?>
			 <a
				href="<?php echo $this->url(array('controller'=>'account','action'=>'edit', 'id'=>0, 'module'=>'admin'));?>">Edytuj
					swój profil</a> | <?php }?> <?php echo $this->loggedInAs();?> </span>
		</div>
		<!-- #header -->

		<div id="nav">
			<!--  <p id="show_hide"> Ukryj menu << </p> -->
			<br /> <br />
		<?php 
			$auth = Zend_Auth::getInstance()->getIdentity();
			if ($auth) {
				$roleId = $auth->role_id;				
			} else {
				$roleId = -1;
			}
		
		?>
		<?php if ( $roleId == 3) {?>
			<h2>Wykładowca</h2>
			<br />
			<?php require_once 'include/nav_lecturer.php';	?>
			<br /> <br />
			
		<?php } else if ( $roleId == 2 ) {?>
			<h2>Techniczny</h2>
			<br />
			<?php require_once 'include/nav_technical.php';	?>
			<br /> <br />
		<?php } else if ( $roleId == 1 ) {?>
			<h2>Administrator</h2>
			<br />
			<?php require_once 'include/nav_admin.php';	?>
			<br /> <br />
		<?php } else {
		
		}?>
		</div>
		<!-- #nav -->

		<div id="container">
			<div id="content">
			<?php echo $this->layout()->content; ?>
			</div>
			<!-- content -->
			<div class="clear"></div>
			<!-- #clear -->
		</div>
		<!-- #container -->

		<div id="footer">Created by Agnieszka Jamróg & Łukasz Kokosza</div>
		<!-- #footer -->
	</div>
	<!-- #wrapper -->
</body>
</html>
